<div class="lists row">
  <div class="col-md-12 col-lg-12 col-xxxl-12">
    <nb-card class="list-card" size="large">
      <nb-card-header>
        网络中的区块链节点
      </nb-card-header>
      <nb-list>
        <nb-list-item *ngFor="let peer of peers">
          <div class="row">
            <div class="col-md-6">
              <nb-user size="large" [name]="'IP地址:' + peer.ipAddress + ' ' + getIsHost(peer)" [title]="'端口号: ' + peer.port">
              </nb-user>
            </div>

            <div class="col-md-6 col-md-offset-3">
                <button style="margin: .5em" class="btn-demo btn-success btn-hero" nbButton (click)="onTestClick($event,peer)">测试节点状态</button>
                <button style="margin: .2em" class="btn-demo btn-primary btn-hero" nbButton (click)="onGetClick($event,peer)">获取最后区块HASH值</button>
            </div>
          </div>
        </nb-list-item>
      </nb-list>
      <nb-card-footer><p><strong>注:显示端口为p2p通信端口，并非http接口</strong></p></nb-card-footer>
    </nb-card>
  </div>
</div>
